package com.ytxg.api.po.book;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 小说章节
 * </p>
 *
 * @author YT_XG
 * @since 2023-12-09
 */
@Builder
@TableName("book_chapter")
@ApiModel(value = "BookChapter对象", description = "小说章节")
public class BookChapter implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("小说ID")
    private Long bookId;

    @ApiModelProperty("章节号")
    private Integer chapterNum;

    @ApiModelProperty("章节名")
    private String chapterName;

    @ApiModelProperty("章节字数")
    private Integer wordCount;

    @ApiModelProperty("是否收费;1-收费 0-免费")
    private Integer isVip;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Integer getChapterNum() {
        return chapterNum;
    }

    public void setChapterNum(Integer chapterNum) {
        this.chapterNum = chapterNum;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public Integer getWordCount() {
        return wordCount;
    }

    public void setWordCount(Integer wordCount) {
        this.wordCount = wordCount;
    }

    public Integer getIsVip() {
        return isVip;
    }

    public void setIsVip(Integer isVip) {
        this.isVip = isVip;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "BookChapter{" +
            "id = " + id +
            ", bookId = " + bookId +
            ", chapterNum = " + chapterNum +
            ", chapterName = " + chapterName +
            ", wordCount = " + wordCount +
            ", isVip = " + isVip +
            ", createTime = " + createTime +
            ", updateTime = " + updateTime +
        "}";
    }
}
